﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Maltose.MessageQueue.Extensions
{

    /// <summary>
    /// 统计业务MQ消息参数类型
    /// </summary>
    public enum BusinessStatisticsType
    {
        /// <summary>
        /// 优惠券总数
        /// </summary>
        coupon,

        /// <summary>
        /// 商城订单待发货总数
        /// </summary>
        mall_order_not_send_goods,

        /// <summary>
        /// 商城订单待收货总数
        /// </summary>
        mall_order_not_take_goods,
        /// <summary>
        /// 商城订单已完成总数
        /// </summary>
        mall_order_complete_goods,
        /// <summary>
        /// 车务订单待发货总数
        /// </summary>
        car_order_not_send_goods,
        /// <summary>
        /// 车务订单待收货总数
        /// </summary>
        car_order_not_take_goods,
        /// <summary>
        /// 车务订单已完成总数
        /// </summary>
        car_order_complete_goods,
        /// <summary>
        /// 提醒卡
        /// </summary>
        remind_card,
        /// <summary>
        /// 挪车码
        /// </summary>
        move_car_code,
        /// <summary>
        /// 防丢吗
        /// </summary>
        anti_loss_code,
        /// <summary>
        /// 积分
        /// </summary>
        integral,
        /// <summary>
        /// 油卡
        /// </summary>
        oil_card,

    }


    /// <summary>
    /// 统计业务MQ消息参数
    /// </summary>
    public class BusinessStatisticsMessage
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public int Member_Id { get; set; }

        /// <summary>
        /// 业务统计类型
        /// </summary>
        public BusinessStatisticsType StatisticsType { get; set; }

        /// <summary>
        /// 添加或者减少数量
        /// </summary>
        public int Num { get; set; }


        /// <summary>
        /// 操作类型 1=添加 0=减少
        /// </summary>
        public int OperationType { get; set; } = 1;
    }

}
